package com.example.aopdemo.aspect;

/*
 * @author zzr
 * @date: 2025/10/02  20:20
 * @description:
 */

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Slf4j
@Aspect
@Component
public class DemoAspect2 {

//    @Before("com.example.aopdemo.aspect.DemoAspect1.pt()")
    public void doBefore() {
        log.info("DemoAspect2 doBefore");
    }

//    @After("com.example.aopdemo.aspect.DemoAspect1.pt()")
    public void doAfter() {
        log.info("DemoAspect2 doAfter");
    }
}
